package com.edu.glutdataconvertclient.controller;

import com.edu.glutdataconvertclient.service.ViewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ares
 */
@RestController
public class ViewController {

    private ViewService viewService;

    @Autowired
    public ViewController(ViewService viewService) {
        this.viewService = viewService;
    }

    @GetMapping("/doTask")
    public String getView() {
        viewService.getViewGxjxJhkczlb();
        viewService.getViewGxjxJsjbsjzlb();
        viewService.getViewGxjxJxhbxx();
        viewService.getViewGxjxKcsjlb();
        viewService.getViewGxjxKcsjlbXxxs();
        viewService.getViewGxjxKsapsjlb();
        viewService.getViewGxjxSkjsxx();
        viewService.getViewGxjxXksjlb();
        viewService.getViewGxjxZtjhzlb();
        viewService.getViewGxjxZyxxsjlb();
        viewService.getViewGxxsXjjbsjzlb();
        viewService.getViewGxxsXsjbsjzl();
        viewService.getViewGxxxBjsjlb();
        viewService.getViewKsJiankao();
        viewService.getViewKsKsbj();
        viewService.getViewKsKs();
        viewService.getViewKsZyjsBj();
        viewService.getViewKsZyjsKaosheng();
        viewService.getViewKsZyjs();
        viewService.getViewBmxx();
        viewService.getViewJssysjzlb();
        viewService.getViewKsqlcJgxx();
        viewService.getViewKcbJs();
        return "ok";
    }

    @GetMapping("/getKsCount")
    public Integer getKsCount() {
        return viewService.getKsCount();
    }

    @GetMapping("/getKsList")
    public void getKsList() {
        viewService.getViewKsKs();
    }

}
